// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Mint from 'mint-ui'
import VueResource from 'vue-resource'
import VueChatScroll from 'vue-chat-scroll'
import * as dataTiem from './common/filters/data'
import { CONFIG } from './common/conn/index.js'

Object.keys(dataTiem).forEach(key => {
  Vue.filter(key, dataTiem[key])
})

Vue.use(CONFIG)
Vue.use(Mint)
Vue.use(VueChatScroll)
Vue.use(VueResource)
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
